home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lantools
/
blueprnt
/
bptime.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-10-16
|
1KB
|
36 lines
program set_time_from_server;
(*************************************************************
* Set Time using Time on Specifed Server *
* by Craig Chaiken (BPTIME.PAS, BPTIME.EXE) * *
* October 3, 1989 *
* *
* Function: *
* This program reads the number of ticks since midnight, *
* a 32 bit number at location 0000:046C, from the *
* server, and set this client to match. *
* *
* Command Format: *
* BPTIME /socket_number *
*************************************************************)
uses dos;
{$I bppascal.inc}
var
temp:integer;
begin
socket_number:=get_opt(1);
packet_buffer[0]:=ord('r');
packet_buffer[1]:=$6c;
packet_buffer[2]:=4;
packet_buffer[3]:=0;
packet_buffer[4]:=0;
packet_buffer[5]:=4;
packet_buffer[6]:=0;
packet_length:=7;
put_packet(socket_number);
temp:=get_packet(socket_number);
mem[0:$46c]:=packet_buffer[1];
mem[0:$46d]:=packet_buffer[2];
mem[0:$46e]:=packet_buffer[3];
mem[0:$46f]:=packet_buffer[4];
end.